import React, { Component } from 'react'

// 快捷键 rcc
export default class App extends Component {

    state = {
        list:["666","777","888"]
    }

  render() {

    var newList = this.state.list.map(item=><li key={item}>{item}</li>)
    return (
      <div>
        <ul>
            {
                newList
            }
        </ul>
      </div>
    )
  }
}
/*
原生JS  map
React哲学：如无必要，勿增实体
*/

var list = ['aaa', 'bbb', 'ccc']

var newList = list.map(item=>`<li>${item}</li>`)

console.log(newList.join(""))
